package com.xlhj.json.controller;

import com.xlhj.json.entity.SysUser;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

/**
 * @ClassName UserController
 * @Description TODO
 * @Author liucaijing
 * @Date 2021/2/22 17:50
 * @Version 1.0
 */
@RestController
public class UserController {

    @GetMapping("/selectUser")
    public SysUser selectUser() {
        SysUser user = new SysUser();
        user.setId(1L);
        user.setUserCode("admin");
        user.setUserName("超级管理员");
        user.setSex((byte) 1);
        user.setAge((byte) 18);
        user.setCreateTime(LocalDateTime.now());
        user.setUpdateTime(LocalDateTime.now());
        return user;
    }
}
